package ar.edu.itba.tp1.tpalan;

import java.util.Random;


public class RandomMatrix {

	public static Square[][] getRandomMatrix() {
		Random generator = new Random( 19580427 );
		
		Square[][] gameBoard = new Square[Parameters.BOARD_SIZE][Parameters.BOARD_SIZE];
		
		for (int i=0; i<Parameters.BOARD_SIZE; i++) {
			for (int j=0; j<Parameters.BOARD_SIZE; j++) {
				gameBoard[i][j] = new Square(Colour.values()[generator.nextInt(Colour.values().length)],i,j);
			}
		}

		return gameBoard;
	}
}
